#include "waitbdconnection.h"
#include "ui_waitbdconnection.h"

waitBdConnection::waitBdConnection(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::waitBdConnection)
{
    ui->setupUi(this);
}

waitBdConnection::~waitBdConnection()
{
    delete ui;
}

void waitBdConnection::Wait(Database *conexao)
{
   ui->setupUi(this);
    setDisabled(true);
    conexao->createConnection(QString::fromUtf8("localhost"),QString::fromUtf8("trab_poo"),
                                         QString::fromUtf8("root"),QString::fromUtf8(""));
}
